package homework_1;

import java.util.Scanner;
public class BookShopSale {
    public static final double DISCOUNT_RATE =0.8f;
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        String name;
        int amount;
        float price;
        double total;
        System.out.print("请输入书名：");
        name=sc.next();
        System.out.print("请输入价格：");
        price=sc.nextFloat();
        System.out.print("请输入数量：");
        amount=sc.nextInt();
        System.out.println("--本次销售情况如下--");
        total=price * amount * DISCOUNT_RATE;
        System.out.println(name+"\t" +total);
        sc.close();
    }
}